cd "$pathdata/Beliefs"

use Beliefs_cleaned.dta, clear

global controls "age female raven_score college"
global controls_drop "age female raven_score"


** Regression CU split

eststo clear
eststo: reg belief bayesian_posterior inter_cu_bayes cognitive_uncertainty if treatment==0, cl(id)
eststo: reg belief bayesian_posterior inter_cu_bayes cognitive_uncertainty $controls if treatment==0, cl(id)
eststo: reg lsposto lposto inter_cu_lposto cognitive_uncertainty if treatment==0, cl(id)
eststo: reg lsposto lposto inter_cu_lposto cognitive_uncertainty $controls if treatment==0, cl(id)
eststo: reg lsposto lpo llr inter_cu_lpo inter_cu_llr cognitive_uncertainty if treatment==0, cl(id)
eststo: reg lsposto lpo llr inter_cu_lpo inter_cu_llr cognitive_uncertainty $controls if treatment==0, cl(id)


* sample size effects for appendix
eststo clear
eststo: reg cognitive_uncertainty sample_size sample_difference if treatment==0, cl(id)
eststo: reg cognitive_uncertainty sample_size sample_difference $controls if treatment==0, cl(id)
eststo: reg cognitive_uncertainty sample_size bayes_absolute if treatment==0, cl(id)
eststo: reg cognitive_uncertainty sample_size bayes_absolute $controls if treatment==0, cl(id)


** Regression treatment

eststo clear
eststo: reg belief bayesian_posterior inter_treat_bayes treatment if round>6, cl(id)
eststo: reg belief bayesian_posterior inter_treat_bayes treatment inter_cu_bayes cognitive_uncertainty $controls if round>6, cl(id)
eststo: reg lsposto lposto inter_treat_lposto treatment if round>6, cl(id)
eststo: reg lsposto lposto inter_treat_lposto inter_cu_lposto cognitive_uncertainty treatment $controls if round>6, cl(id)
eststo: reg lsposto lpo inter_treat_lpo llr inter_treat_llr treatment if round>6, cl(id)
eststo: reg lsposto lpo inter_treat_lpo llr inter_treat_llr treatment inter_cu_lpo inter_cu_llr cognitive_uncertainty $controls if round>6, cl(id)
